/**
 * 查询事件实体
 */
function checkEventAdmin(){
	//alert("dfgfd");
    var timestamp = Date.parse(new Date());
    $.get("work2/LZMReport_checkEventAdmin.action?ts=" + timestamp + "&EId=" + getCookie(eventId), null, checkEventAdminRst);
}

/**
 * 查询事件回调函数
 */
function checkEventAdminRst(data){
	/*
	if (data.ajaxRst == "noadmin") {
		window.location.href="rating.jsp";
	}else{
		if (data.ajaxRst == "yesadmin") {
			checkEmergency();
		}else{
			
			alert("服务器异常，请检查后重试 ！");
		}
	}*/
	switch(data.ajaxRst){
		case "noadmin":
			window.location.href="rating.jsp";
			break;
		case "yesadmin":
			checkEmergency();
			break;
		default:
			alert("服务器异常，请检查后重试 ！");
	}
	/*
    if (data.ajaxRst == "success") {		
		$('#EEventname').text(data.event.EEventname);
        $('#EId').text(data.event.EId);
		$('#tbesEventStatus').text(data.event.tbEventStatus.tbesEventStatus);
		
        $('#EEventCause').val(data.event.EEventCause);
        $('#EEventDesc').val(data.event.EEventDesc);
		
		var ETakeMeasure=data.event.ETakeMeasure;
		if(ETakeMeasure==null)
		ETakeMeasure="暂无";
        $('#ETakeMeasure').val(ETakeMeasure);
        $('#tbEventSource').text(data.event.tbEventSource.esEventSource);
    }
    else {
        alert("服务器异常，请检查后重试 ！");
    }*/
}


/**
 * 查询事件实体
 */
function checkEventAdmin1(){
	//alert("dfgfd");
    var timestamp = Date.parse(new Date());
    $.get("work2/LZMReport_checkEventAdmin.action?ts=" + timestamp + "&EId=" + getCookie(eventId), null, checkEventAdminRst1);
}

/**
 * 查询事件回调函数
 */
function checkEventAdminRst1(data){
	/*
	if (data.ajaxRst == "noadmin") {
		window.location.href="rating.jsp";
	}else{
		if (data.ajaxRst == "yesadmin") {
			checkEmergency();
		}else{
			
			alert("服务器异常，请检查后重试 ！");
		}
	}*/
	switch(data.ajaxRst){
		case "noadmin":
			//window.location.href="rating.jsp";
			//redirectPage("work/rating.jsp");
			alert("当前应急事件没有配置指挥信息，请到\"\事件处理\"下进行配置！");
			break;
		case "yesadmin":
			checkEmergency();
			break;
		default:
			alert("服务器异常，请检查后重试 ！");
	}
	/*
    if (data.ajaxRst == "success") {		
		$('#EEventname').text(data.event.EEventname);
        $('#EId').text(data.event.EId);
		$('#tbesEventStatus').text(data.event.tbEventStatus.tbesEventStatus);
		
        $('#EEventCause').val(data.event.EEventCause);
        $('#EEventDesc').val(data.event.EEventDesc);
		
		var ETakeMeasure=data.event.ETakeMeasure;
		if(ETakeMeasure==null)
		ETakeMeasure="暂无";
        $('#ETakeMeasure').val(ETakeMeasure);
        $('#tbEventSource').text(data.event.tbEventSource.esEventSource);
    }
    else {
        alert("服务器异常，请检查后重试 ！");
    }*/
}